<extend name="Public:base" />
<block name="header" >
    <span class="action-span"><a href="">优惠券列表</a></span>
    <span class="action-span1"><a href="">武汉同兴一站办企业服务有限公司 管理中心</a></span>
    <!--  <span id="search_id" class="action-span1"> - 商品列表 </span>-->
    <div style="clear:both"></div>
</block>

<block name="body">


    <!-- 商品列表 -->

    <div class="list-div" id="listDiv">
        <table cellpadding="3" cellspacing="1">
            <tr>
                <th>编号</th>
                <th>商品分类名称</th>
                <th>商品名称</th>
                <th>优惠券名称</th>
                <th>优惠券介绍</th>
                <th>兑换所需积分</th>
                <th>VIP专属</th>
                <th>开始领取时间</th>
                <th>结束领取时间</th>
                <th>可以使用时间</th>
                <th>失效类型--时间</th>
                <th>优惠券数量</th>
                <th>状态</th>
                <th>条件</th>
                <th>操作</th>
            </tr>
            <volist name="coupon_list" id="vo">
                <tr>
                    <td align="center">{$vo.coupon_id}</td>
                    <td align="center"><span>{$vo.class_lists}</span></td>
                    <td align="center"><span>{$vo.goods_lists}</span></td>
                    <td align="center"><span>{$vo.coupon_name}</span></td>
                    <td align="center"><span>{$vo.intro}</span></td>
                    <td align="center"><span>{$vo.integral}</span></td>
                <if condition="$vo['vip_exclusive'] eq 0">
                    <td align="center"><span>普通优惠券</span></td>
                    <else />
                    <td align="center"><span>VIP{$vo.vip_exclusive}以上可以兑换</span></td>
                </if>
                <td align="center"><span>{$vo.start_time|date='Y-m-d H:i:s',###}</span></td>
                <td align="center"><span>{$vo.end_time|date='Y-m-d H:i:s',###}</span></td>
                <td align="center"><span>{$vo.use_time}天</span></td>
                <if condition="$vo['lost_type'] eq 0">
                    <td align="center"><span>定期失效 - {$vo.loat_time|date='Y-m-d H:i:s',###}</span></td>
                    <else />
                    <td align="center"><span>周期性失效 - {$vo.lost_cycle}天</span></td>
                </if>
                <td align="center"><span>{$vo.coupon_num}元</span></td>
                <if condition="$vo['state'] eq 0">
                    <td align="center"><span>禁用</span></td>
                    <else />
                    <td align="center"><span>启用</span></td>
                </if>
                <td align="center"><span>{$vo.conditions}元</span></td>

                <td align="center">
                    <a href="{:U('edit','id='.$vo['coupon_id'])}">编辑</a>
                    <a href="{:U('del','id='.$vo['coupon_id'])}" >删除</a>
                </td>
                </tr>
            </volist>
        </table>
        <!-- 分页开始 -->
        <table id="page-table" cellspacing="0">
            <tr>
                <td width="80%">&nbsp;</td>
                <td align="center" nowrap="true">
                    {$data.pageStr}
                </td>
            </tr>
        </table>
        <!-- 分页结束 -->
    </div>
</block>